var net = require('net');
var  chatServer = net.createServer();
chatServer.on('connection', function(client) {
	client.write('Hi!\n');
	client.write('Bye!\n');

	client.end()
});

chatServer.listen(10000)